﻿using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
using Teigha.Core;

namespace Teigha.TD
{
	public class OdDbEvalGraph : OdDbObject
	{
		[EditorBrowsable(EditorBrowsableState.Never)]
		public OdDbEvalGraph(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbEvalGraph_SWIGUpcast(cPtr), cMemoryOwn)
		{
			this.swigCPtr = new HandleRef(this, cPtr);
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		public static HandleRef getCPtr(OdDbEvalGraph obj)
		{
			if (obj != null)
			{
				return obj.swigCPtr;
			}
			return new HandleRef(null, IntPtr.Zero);
		}

		~OdDbEvalGraph()
		{
			this.Dispose();
		}

		public override void Dispose()
		{
			if (this.swigCPtr.Handle != IntPtr.Zero)
			{
				if (this.swigCMemOwn)
				{
					lock (this.locker)
					{
						if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
						{
							this.swigCMemOwn = false;
							TD_DbPINVOKE.delete_OdDbEvalGraph(this.swigCPtr);
						}
					}
					this.swigCMemOwn = false;
				}
				this.swigCPtr = new HandleRef(null, IntPtr.Zero);
			}
			GC.SuppressFinalize(this);
			base.Dispose();
		}

		public new static OdDbEvalGraph cast(OdRxObject pObj)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbEvalGraph_cast(OdRxObject.getCPtr(pObj));
			OdDbEvalGraph result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new static OdRxClass desc()
		{
			OdRxClass result = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(TD_DbPINVOKE.OdDbEvalGraph_desc(), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdRxClass isA()
		{
			OdRxClass result = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(TD_DbPINVOKE.OdDbEvalGraph_isA(this.swigCPtr), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdRxObject queryX(OdRxClass protocolClass)
		{
			OdRxObject result = Teigha.Core.Helpers.odrxCreateObjectInternal(TD_DbPINVOKE.OdDbEvalGraph_queryX(this.swigCPtr, OdRxClass.getCPtr(protocolClass)), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new static OdDbEvalGraph createObject()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbEvalGraph_createObject();
			OdDbEvalGraph result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdDbEvalGraph() : this(TD_DbPINVOKE.new_OdDbEvalGraph__SWIG_1(), true)
		{
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static bool hasGraph(OdDbObject pObj, string key)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_hasGraph__SWIG_0(OdDbObject.getCPtr(pObj), key);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbEvalGraph getGraph(OdDbObject pObj, string pKey, OpenMode openMode)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbEvalGraph_getGraph__SWIG_0(OdDbObject.getCPtr(pObj), pKey, (int)openMode);
			OdDbEvalGraph result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbEvalGraph getGraph(OdDbObject pObj, string pKey)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbEvalGraph_getGraph__SWIG_1(OdDbObject.getCPtr(pObj), pKey);
			OdDbEvalGraph result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static bool createGraph(OdDbObject pObj, string key)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_createGraph__SWIG_0(OdDbObject.getCPtr(pObj), key);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static bool removeGraph(OdDbObject pObj, string pKey)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_removeGraph__SWIG_0(OdDbObject.getCPtr(pObj), pKey);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static bool hasGraph(OdDbDatabase pDb, string key)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_hasGraph__SWIG_1(OdDbDatabase.getCPtr(pDb), key);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbEvalGraph getGraph(OdDbDatabase pDb, string key, OpenMode openMode)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbEvalGraph_getGraph__SWIG_2(OdDbDatabase.getCPtr(pDb), key, (int)openMode);
			OdDbEvalGraph result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbEvalGraph getGraph(OdDbDatabase pDb, string key)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbEvalGraph_getGraph__SWIG_3(OdDbDatabase.getCPtr(pDb), key);
			OdDbEvalGraph result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static bool createGraph(OdDbDatabase pDb, string key)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_createGraph__SWIG_1(OdDbDatabase.getCPtr(pDb), key);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static bool removeGraph(OdDbDatabase pDb, string key)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_removeGraph__SWIG_1(OdDbDatabase.getCPtr(pDb), key);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual uint addNode(OdDbEvalExpr pNode)
		{
			uint result = TD_DbPINVOKE.OdDbEvalGraph_addNode(this.swigCPtr, OdDbEvalExpr.getCPtr(pNode));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool removeNode(uint nodeId)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_removeNode__SWIG_0(this.swigCPtr, nodeId);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool removeNode(OdDbEvalExpr pNode)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_removeNode__SWIG_1(this.swigCPtr, OdDbEvalExpr.getCPtr(pNode));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void getAllNodes(OdDbEvalNodeIdArray allNodes)
		{
			TD_DbPINVOKE.OdDbEvalGraph_getAllNodes(this.swigCPtr, OdDbEvalNodeIdArray.getCPtr(allNodes));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual OdDbEvalExpr getNode(uint nodeId, OpenMode openMode)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbEvalGraph_getNode__SWIG_0(this.swigCPtr, nodeId, (int)openMode);
			OdDbEvalExpr result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbEvalExpr)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbEvalExpr)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbEvalExpr)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbEvalExpr getNode(uint nodeId)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbEvalGraph_getNode__SWIG_1(this.swigCPtr, nodeId);
			OdDbEvalExpr result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbEvalExpr)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbEvalExpr)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbEvalExpr)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool addEdge(uint idFrom, uint idTo)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_addEdge__SWIG_0(this.swigCPtr, idFrom, idTo);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool addEdge(uint idFrom, uint idTo, bool invertible)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_addEdge__SWIG_1(this.swigCPtr, idFrom, idTo, invertible);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool removeEdge(uint idFrom, uint idTo)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_removeEdge(this.swigCPtr, idFrom, idTo);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void getIncomingEdges(uint nodeId, OdDbEvalEdgeInfoArray edges)
		{
			TD_DbPINVOKE.OdDbEvalGraph_getIncomingEdges(this.swigCPtr, nodeId, OdDbEvalEdgeInfoArray.getCPtr(edges));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void getOutgoingEdges(uint nodeId, OdDbEvalEdgeInfoArray edges)
		{
			TD_DbPINVOKE.OdDbEvalGraph_getOutgoingEdges(this.swigCPtr, nodeId, OdDbEvalEdgeInfoArray.getCPtr(edges));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool getEdgeInfo(uint idFrom, uint idTo, OdDbEvalEdgeInfo edgeInfo)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_getEdgeInfo(this.swigCPtr, idFrom, idTo, OdDbEvalEdgeInfo.getCPtr(edgeInfo));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void addGraph(OdDbEvalGraph pGraphToAdd)
		{
			TD_DbPINVOKE.OdDbEvalGraph_addGraph(this.swigCPtr, OdDbEvalGraph.getCPtr(pGraphToAdd));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool evaluate()
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_evaluate__SWIG_0(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool evaluate(OdDbEvalContext pContext)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_evaluate__SWIG_1(this.swigCPtr, OdDbEvalContext.getCPtr(pContext));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool evaluate(OdDbEvalContext pContext, OdDbEvalNodeIdArray pActivateNodes)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_evaluate__SWIG_2(this.swigCPtr, OdDbEvalContext.getCPtr(pContext), OdDbEvalNodeIdArray.getCPtr(pActivateNodes));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool activate(OdDbEvalNodeIdArray activatedNodes)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_activate__SWIG_0(this.swigCPtr, OdDbEvalNodeIdArray.getCPtr(activatedNodes));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool activate(OdDbEvalNodeIdArray activatedNodes, OdDbEvalNodeIdArray pActiveSubgraph)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_activate__SWIG_1(this.swigCPtr, OdDbEvalNodeIdArray.getCPtr(activatedNodes), OdDbEvalNodeIdArray.getCPtr(pActiveSubgraph));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool activate(OdDbEvalNodeIdArray activatedNodes, OdDbEvalNodeIdArray pActiveSubgraph, OdDbEvalNodeIdArray pCycleNodes)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_activate__SWIG_2(this.swigCPtr, OdDbEvalNodeIdArray.getCPtr(activatedNodes), OdDbEvalNodeIdArray.getCPtr(pActiveSubgraph), OdDbEvalNodeIdArray.getCPtr(pCycleNodes));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool getIsActive(uint nodeId, out bool isActive)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_getIsActive(this.swigCPtr, nodeId, out isActive);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool equals(OdDbEvalGraph pOther)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_equals(this.swigCPtr, OdDbEvalGraph.getCPtr(pOther));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool isSubgraphOf(OdDbEvalGraph pOther)
		{
			bool result = TD_DbPINVOKE.OdDbEvalGraph_isSubgraphOf(this.swigCPtr, OdDbEvalGraph.getCPtr(pOther));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdResult dwgInFields(OdDbDwgFiler pFiler)
		{
			OdResult result = (OdResult)TD_DbPINVOKE.OdDbEvalGraph_dwgInFields(this.swigCPtr, OdDbDwgFiler.getCPtr(pFiler));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual void dwgOutFields(OdDbDwgFiler pFiler)
		{
			TD_DbPINVOKE.OdDbEvalGraph_dwgOutFields(this.swigCPtr, OdDbDwgFiler.getCPtr(pFiler));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public new virtual OdResult dxfInFields(OdDbDxfFiler pFiler)
		{
			OdResult result = (OdResult)TD_DbPINVOKE.OdDbEvalGraph_dxfInFields(this.swigCPtr, OdDbDxfFiler.getCPtr(pFiler));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual void dxfOutFields(OdDbDxfFiler pFiler)
		{
			TD_DbPINVOKE.OdDbEvalGraph_dxfOutFields(this.swigCPtr, OdDbDxfFiler.getCPtr(pFiler));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public new virtual void applyPartialUndo(OdDbDwgFiler pFiler, OdRxClass pClassObj)
		{
			TD_DbPINVOKE.OdDbEvalGraph_applyPartialUndo(this.swigCPtr, OdDbDwgFiler.getCPtr(pFiler), OdRxClass.getCPtr(pClassObj));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public new virtual void copyFrom(OdRxObject p)
		{
			TD_DbPINVOKE.OdDbEvalGraph_copyFrom(this.swigCPtr, OdRxObject.getCPtr(p));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual OdResult postInDatabase(OdDbDatabase arg0)
		{
			OdResult result = (OdResult)TD_DbPINVOKE.OdDbEvalGraph_postInDatabase(this.swigCPtr, OdDbDatabase.getCPtr(arg0));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual void subHandOverTo(OdDbObject pNewObject)
		{
			TD_DbPINVOKE.OdDbEvalGraph_subHandOverTo(this.swigCPtr, OdDbObject.getCPtr(pNewObject));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		private object locker = new object();

		private HandleRef swigCPtr;

		public enum NodeId
		{
			kNullNodeId
		}
	}
}
